# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=1
inherit eutils findlib

MyPN="calendar"
MyP="${MyPN}-${PV}"
MyS="${MyPN}-2.03"
DESCRIPTION="The Calendar Library (Calendar for short) is an Objective Caml library for handling dates and times in your program."
HOMEPAGE="http://calendar.forge.ocamlcore.org/"
SRC_URI="http://forge.ocamlcore.org/frs/download.php/427/${MyP}.tar.gz"

LICENSE="LGPL2"
SLOT="0"
KEYWORDS="x86"

IUSE=""
DEPEND="dev-ml/findlib"
RDEPEND="${DEPEND}"

src_compile() {
	cd ${WORKDIR}/${MyS}
	econf || die
	emake clean || die
	emake || die
}

src_install() {
	cd ${WORKDIR}/${MyS}
	findlib_src_preinst
	emake install || die
}
